home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gMaxBoutons, gBarChron, gBoutons, gCheckbox, gListSuj, gListCod, gListCodAnc, gListPart, gListAng, gNumSpr, gSujet0, gSurvolPrec, gSurvolAct, gMessDef1, gMessSty1, gChapAct, gChapPrec, gEtudAct, gEtudPrec, gEtaEtud, gEtaSpir, gLabel, g1erSprChr, g1erSprNav, g1erSprLoc, gCDpath, gZicPath, gSprSel, gListBtDec, gListBtChr, gListCurs, gListMsk, gCursor, gVide, gScopeSu, gScopeCo0, gScopeCo1, exitFrame, gScopeTr, gScopeHi, gScopeEnZ, gScopeEnB, gScopeCh, gScopeCi, gScopeWt, gScopePh, gScopeRe, gScopeDe, gScopeFi, gTraduit, gIndEnv, gEnv1, gEnv2, gEnv3, gEnv4, gCodEnv, gNumEnv, gNomBestEnv, gBotBestEnv, gTopBestEnv, gLefBestEnv, gRigBestEnv, gTextEnvT, gTextEnvL, gListCodPhy, gListNomPhy, gListRecPhy, gListSujPhy, gListArbPhy, gListFicPhy, gListTimPhy, gTextPhyL, gListQst, gListRep, gVolVid, gVolZic, g1ereFois, gCompte, gBagotte, gIndSel, gOldSelStart, gOldSelEnd, gLoadZic, gVersion, gListDepth, gLocDeb
- cursor(4)
- go(the frame)
- set gCompte to 0
- set mon_sep to "\"
- set gCDpath to the moviePath
- set gCDpath to chars(gCDpath, 1, the number of chars in gCDpath - 2)
- set gCDpath to gCDpath & "DATA" & mon_sep
- set gZicPath to gCDpath & "S" & mon_sep
- set gVersion to gCDpath & "L8" & mon_sep
- if not (the quickTimePresent) then
- alert("QuickTime was not found. please install it.")
- quit()
- end if
- set gScopeSu to FFScope(mnew, the number of cast "VidSuCo", 40, gCDpath)
- set gScopeCo0 to FFScope(mnew, the number of cast "VidSuCo", 40, gCDpath)
- set gScopeCo1 to FFScope(mnew, the number of cast "VidSuCo", 41, gCDpath)
- set gScopeTr to FFScope(mnew, the number of cast "VidTr", 40, gCDpath)
- set gScopeEnZ to FFScope(mnew, the number of cast "VidEn", 40, gCDpath)
- set gScopeEnB to FFScope(mnew, the number of cast "VidEn", 41, gCDpath)
- set gScopeHi to FFScope(mnew, the number of cast "VidHi", 40, gCDpath)
- set gScopeCh to FFScope(mnew, the number of cast "VidCh", 40, gCDpath)
- set gScopeCi to FFScope(mnew, the number of cast "VidCi", 40, gCDpath)
- set gScopePh to FFScope(mnew, the number of cast "VidPh", 40, gCDpath)
- set gScopeDe to FFScope(mnew, the number of cast "VidDe", 40, gCDpath)
- set gScopeFi to FFScope(mnew, the number of cast "VidFi", 42, gCDpath)
- puppetSprite(39, 1)
- go(the frame)
- set the locH of sprite 39 to 69
- set the locV of sprite 39 to 285
- go(the frame)
- ini_curs()
- curseur(6)
- ini_suj()
- ini_Tim()
- ini_env()
- ini_phy()
- ini_aid()
- ini_son()
- patience("initialisation des variables globales")
- set gListCodAnc to list("PUR", "NEC", "AEG", "PAF", "KEN", "AAF", "HHA", "HER", "HSA", "HSS")
- set gListPart to list("T", "C", "S", "B")
- set gListAng to list("P", "Q", "F")
- set gBarChron to FBarreChrono(mnew)
- set gBoutons to FGereBouton(mnew)
- set gCheckbox to FGereCheckBox(mnew)
- set gMaxBoutons to 48
- set g1erSprChr to 5
- set gListBtChr to list()
- repeat with i = g1erSprChr to g1erSprChr + 9
- setAt(gListBtChr, i, word 1 of the name of cast the castNum of sprite i)
- end repeat
- set g1erSprNav to 15
- set g1erSprLoc to 0
- repeat with i = 46 to 48
- puppetSprite(i, 1)
- end repeat
- set the visible of sprite 48 to 0
- set the castNum of sprite 48 to the number of cast "vide"
- set gNumSpr to 0
- set gSujet0 to 0
- set gSurvolPrec to 0
- set gSurvolAct to 0
- set gMessDef1 to " "
- set gChapAct to "CI"
- set gChapPrec to " "
- set gEtudAct to " "
- set gEtudPrec to " "
- set gEtaEtud to " "
- set gEtaSpir to 0
- set gLabel to EMPTY
- set gMessSty1 to "plain"
- set gIndSel to 1
- set gVide to the number of cast "vide"
- set the text of cast "zone info" to " "
- set the text of cast "titre" to " "
- set gIndSel to 0
- set gVolVid to 255
- set gVolZic to 255
- set g1ereFois to 1
- set gOldSelStart to 0
- set gOldSelEnd to 0
- set gLoadZic to 1
- set gListDepth to list(8, 16, 32)
- puppetSprite(3, 1)
- puppetSprite(39, 0)
- go(label("AC:IN"))
- end
-
- on zutMovie
- global gBarChron, gBoutons, gCheckbox, gListSuj, gScopeSu, gScopeCo0, gScopeCo1, gScopePh, gScopeTr, gScopeHi, gScopeEnZ, gScopeEnB, gScopeCh, gScopeCi, gScopeWt
- if not (the controlDown) then
- gScopeSu(mdispose)
- gScopeCo0(mdispose)
- gScopeCo1(mdispose)
- gScopePh(mdispose)
- gScopeTr(mdispose)
- gScopeHi(mdispose)
- gScopeEnZ(mdispose)
- gScopeEnB(mdispose)
- gScopeCh(mdispose)
- gScopeCi(mdispose)
- repeat with i = 1 to 48
- set the visible of sprite i to 1
- puppetSprite(i, 0)
- end repeat
- end if
- gBarChron(mdispose)
- gBoutons(mdispose)
- gCheckbox(mdispose)
- repeat with i = 1 to 18
- set suj to getAt(gListSuj, i)
- suj(mdispose)
- end repeat
- set the trace to 0
- end
-